(function(angular) {
	'use strict';
	angular.module('fs.waf').factory('wfSetupService', wfSetupService);
	wfSetupService.$inject = [ '$q', 'loggerFactory', 'commonService' , 'ajaxServiceFactory', 'modalService'];
	function wfSetupService($q, loggerFactory, commonService, ajaxServiceFactory, modalService) {
		var wfSetupServiceObj = this;
		var log = loggerFactory.getLogger("wfSetupService");
		var ajaxService = ajaxServiceFactory.buildAjaxService({
			getItemTypeOptions : {
				url : 'do/cda/dataList/itemType',
				method : 'get'
			}
		});
		
		function getItemTypeOptions() {
			var defer = $q.defer();
			ajaxService.getItemTypeOptions().then(function(response) {
				defer.resolve(response ? response : {});
			});
			return defer.promise;
		};
		
		return {
			getItemTypeOptions : getItemTypeOptions
		};
	}
})(angular);
